package com.smart.sso.server.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smart.mvc.dao.mybatis.Dao;
import com.smart.sso.server.model.Dept;

/**
 * 权限持久化接口
 * 
 * @author Joe
 */
public interface DeptDao extends Dao<Dept, Integer> {

    public int enable(@Param("isEnable") Boolean isEnable,
            @Param("idList") List<Integer> idList);

    public List<Dept> findByName(@Param("name") String name,
            @Param("isEnable") Boolean isEnable);
}
